<script setup>
import { useRouter } from "vue-router";
const router = useRouter();

import tool from "@/utils/tool";

let loginInfo = tool.data.get("LOGIN_INFO");
if (loginInfo && loginInfo.id) {
  router.push({
    name: "home",
  });
} else {
  router.push({
    path: "/login",
    query: {},
  });
}

</script>

<template>
  <RouterView></RouterView>
</template>

<style>
.layout-main {
  min-width: 1368px;
}

.bg-base {
  background-color: rgba(243, 243, 245, 1);
}
</style>
